package org.jeecg.chase.common.result;

import java.util.List;

/**
 * @author leikai
 * @version 1.0
 * @description: 分页返回对象
 * @date 2021/07/23/0023 15:50
 */
public class PageResult<T> extends ListResult<T> {

    private Long total = Long.valueOf(0);

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public PageResult(int status, String code, String msg) {
        super(status, code, msg);
    }

    public PageResult(int status, String code, String msg, List<T> rows, Long total) {
        super(status, code, msg, rows);
        this.total = total;
    }

    public PageResult(List<T> rows, Long total) {
        super(rows);
        this.total = total;
    }
}
